package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 单位管理和报灾管理的中间表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tmp_units_disaster")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UnitsDisasterModel {
    @TableId(type = IdType.AUTO)
    private Integer id; //单位表和报灾表中间表ID
    private Integer unitsId;//单位表ID
    private Integer disasterId;//报灾管理表ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
}
